//
//  MathTool.m
//  初始通用工程
//
//  Created by xhq on 2016/12/20.
//  Copyright © 2016年 xhq. All rights reserved.
//

#import "MathTool.h"

@implementation MathTool



+(int)jisuanWith:(void (^)(MathItem *))itemBlock{
    MathItem *item = [MathItem new];
    
    itemBlock(item);
    return item.result;
}
@end




@implementation MathItem
-(MathItem *(^)(int))add{
    
    MathItem *(^xx)(int) = ^MathItem *(int a){
        self.result += a;
        return self;
    };
    return xx;
    
}


@end
